package com.aizhixin.lab.project.course.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

@Data
@Entity(name = "t_project_reply")
public class ProjectReply {

  @Id
  private String id;
  @Column(name = "release_project_reply_id")
  private String releaseProjectReplyId;
  @Column(name = "project_id")
  private String projectId;
  @Column(name = "group_id")
  private String groupId;
  @Column(name = "reply_object_id")
  private String replyObjectId;
  @Column(name = "evaluating_id")
  private String evaluatingId;
  @Column(name = "score")
  private double score;
  @Column(name = "created_by")
  private long createdBy;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Column(name = "created_date")
  private Date createdDate;
  @Column(name = "delete_flag")
  private int deleteFlag;
  @Column(name = "reply_type")
  private int replyType;


}
